home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 2.iso
/
STUTTGART
/
LANG
/
BASIC
/
LIB
/
EVENTSHELL
/
DOCS
/
Pointer
< prev
next >
Wrap
Text File
|
1996-01-27
|
3KB
|
128 lines
PROCshell_PointerGetPosition()
=> int mouse x coord (OS units) updated on return
int mouse y coord (OS units) updated on return
--------------------------------------------------------
PROCshell_PointerGetWindow()
=> int window handle (updated on return)
Returns the handle of the window the pointer is currently
over
--------------------------------------------------------
PROCshell_PointerGetIcon()
=> int icon handle (updated on return)
Returns the handle of the icon the pointer is currently
over (-1 for no icon)
--------------------------------------------------------
PROCshell_PointerGetMouseButton()
=> int mouse button (updated on return)
Returns the mouse button used for the last click event
--------------------------------------------------------
FNshell_PointerIsBelowWindowCentre()
=> int window handle
<= bool TRUE if mouse pointer is below the centre
of the window's visible area, otherwise
FALSE
--------------------------------------------------------
FNshell_PointerIsAboveWindowCentre()
=> int window handle
<= bool TRUE if mouse pointer is above the centre
of the window's visible area, otherwise
FALSE
--------------------------------------------------------
FNshell_PointerIsRightOfWindowCentre()
=> int window handle
<= bool TRUE if mouse pointer is right of the
centre of the window's visible area,
otherwise FALSE
--------------------------------------------------------
FNshell_PointerIsLeftOfWindowCentre()
=> int window handle
<= bool TRUE if mouse pointer is left of the
centre of the window's visible area,
otherwise FALSE
--------------------------------------------------------
PROCshell_PointerGetMovementVector()
=> int last known x coord (OS units)
int last known y coord (OS units)
int current x coord (OS units)
int current y coord (OS units)
bool TRUE direction was up
bool TRUE direction was down
bool TRUE direction was left
bool TRUE direction was right
int x displacement (OS units)
int y displacement (OS units)
Given two sets of screen coordinates this routine
returns the direction (one of the directions will be
TRUE, the others FALSE) and the magnitude of the
displacement. Coordinates are relative to the bottom
left of the screen.
The current pointer position can be read using
PROCshell_PointerGetPosition.
--------------------------------------------------------
PROCshell_PointerGetLastMovementVector()
>= bool TRUE direction was up
bool TRUE direction was down
bool TRUE direction was left
bool TRUE direction was right
int x displacement (OS units)
int y displacement (OS units)
This routine returns the direction (one of the
directions will be TRUE, the others FALSE) and
the magnitude of the last displacement.
Coordinates are relative to the bottom left of
the screen.
--------------------------------------------------------
PROCshell_PointerChangeShape()
=> str pointer sprite name
int hot spot x offset (OS units)
int hot spot y offset (OS units)
Changes the pointer shape to the specified sprite.
--------------------------------------------------------
PROCshell_PointerLimit()
=> int window handle
Limits mouse pointer movement to the area of the
specified window.
--------------------------------------------------------
PROCshell_PointerRemoveLimits
=> None
Removes the pointer bounding box
--------------------------------------------------------